package Core;

import Logic.BaseCommand;

import java.util.concurrent.BlockingDeque;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;

public class NetDataQueue {
    private NetDataQueue() {}

    private static NetDataQueue _instance;

    public static NetDataQueue Instance() {
        if (_instance == null) {
            _instance = new NetDataQueue();
        }
        return _instance;
    }

    private BlockingDeque<NetData> netDataQueue = new LinkedBlockingDeque<NetData>();

    public BlockingQueue getQueue() {
        return netDataQueue;
    }
}
